/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.vo;

import io.swagger.annotations.ApiModelProperty;
import org.springblade.modules.admin.entity.RescueNotice;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;

import java.util.Date;

/**
 * 救援通知记录表视图实体类
 *
 * @author ysq
 * @since 2023-09-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "RescueNoticeVO对象", description = "救援通知记录表")
public class RescueNoticeVO extends RescueNotice {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "业务编号")
	private String bizNum;

	@ApiModelProperty(value = "响应客服用户id")
	private Long userId;

	@ApiModelProperty(value = "响应客服用户名称")
	private String realName;

	@ApiModelProperty(value = "响应时长")
	private String responseTimeFormat;

	@ApiModelProperty(value = "会话开始时间")
	private Date sessionStartTime;

	@ApiModelProperty(value = "会话结束时间")
	private Date sessionEndTime;

	@ApiModelProperty(value = "会话时长")
	private String sessionTimeFormat;

	@ApiModelProperty(value = "报警时间")
	private Date createTime;

	@ApiModelProperty(value = "任务状态 1-调度中，2-待开始，3-已出发，4-已到达，5-已救援，6-已撤回")
	private Integer status;

	@ApiModelProperty(value = "救援人员")
	private String rescueUsers;

	@ApiModelProperty(value = "救援完成时间")
	private Date planEndTime;

	@ApiModelProperty(value = "救援时长")
	private String rescueTimeFormat;

	/**
	 * 紧急呼叫时间筛选
	 */
	private String callStartTime;

	/**
	 * 紧急呼叫时间筛选
	 */
	private String callEndTime;

	/**
	 * 项目id筛选
	 */
	private String buildingIds;

	public String getBizNum() {
		return this.getBizPrefix() + "-" + this.getNum();
	}
}
